package com.idbk.chargestation.view;


import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * ScrollView或ListView中嵌套ListView的情况下使用
 * @author liangzw
 *
 */
public class NestedListView extends ListView {
	
	public NestedListView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	@Override
	protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
		int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, 
				MeasureSpec.AT_MOST);
		super.onMeasure(widthMeasureSpec, expandSpec);
	}
	
}
